<?php
	if(count($cart)==0)
	{
?>
		<tr>
			<td colspan='11' style="height:60px;border:none;">
				<div class='warning_message' style='padding:7px;'><?php echo lang('services_no_items'); ?></div>
			</td>
		</tr>
<?php
	}
	else
	{
		foreach($cart as $key=>$value)
		{
		?>
			
			<tr id="reg_item_top">
				<td width='5%'><input type='checkbox' id="item_<?php echo $value['service_id'];?>" value="<?php echo $value['service_id'] ;?>"/></td>
				<td><?php echo $value['print']; ?></td>
				<td><?php echo $value['customer_name'];?></td>
				<td><?php echo $value['phone_num'];?></td>
				<td><?php echo $value['product_brand']; ?></td>
				<td><?php echo $value['product_model']; ?></td>
				<td><?php echo $value['service_cost']; ?></td>
				<td><?php echo $value['date_return']; ?></td>
				<td>
				<?php 
					if($value['date_return'] > date("Y-m-d H:i:s")){
						echo "Waiting";
					}else{
						echo "Done";
					} 
				?>
				</td>
				<td>
					<?php 
					echo anchor("services/view/".$value['service_id']."/width~550",
					"<div class='small_button'><span>".lang('services_edit')."</span></div>",
					array('class'=>'thickbox none','title'=>lang('services_edit')));
					?>
				</td>
			</tr>
		<?php
		echo form_close();
		}
?>

<div id="pagination">
	<?php echo $this->pagination->create_links();?>
</div>

<?php 		
		
	}
?>